package com.example.p212propertysources;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class P212PropertySourcesApplication {

    private static final Logger log =
            LoggerFactory.getLogger(P212PropertySourcesApplication.class);

    public static void main(String[] args) {
        //SpringApplication.run(P212PropertySourcesApplication.class, args);
        ApplicationContext applicationContext =
                SpringApplication.run(P212PropertySourcesApplication.class, args);
        DbConfiguration dbConfiguration =
                applicationContext.getBean(DbConfiguration.class);
        log.info(dbConfiguration.toString());
    }

}
